package Homework;

import java.util.Scanner;

public class sum {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个五位整数：");
		int a = input.nextInt();
		int wan = a / 10000;
		int qian = a / 1000 % 10;
		int bai = a / 100 % 10;
		int shi = a / 10 % 10;
		int ge = a % 10;
		int he = wan + qian + bai + ge + shi;
		System.out.println("五位数之和为：" + he);
	}
}
